package com.hmall.api.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: Serendipity-li
 * @Date: 2024/7/25 - 21:31
 * @Description: 用户相关的feign接口
 */
@FeignClient("pay-service")
public interface UserClient {

    @PutMapping("users/money/deduct")
    void deductMoney(@RequestParam("pw") String pw, @RequestParam("amount") Integer amount);
}
